package com.bw.day10.entity;

import java.util.Date;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;

public class Paybill {
	private Integer id;
	private String code;
	private String name;
	private Integer companyId;
	private Integer businessId;
	private Integer deptId;
	private Double acount;
	private String bills;
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date createtime;
	private List<User> users;
	private String companyname;
	private String businessname;
	private String deptname;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getCompanyId() {
		return companyId;
	}
	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}
	public Integer getBusinessId() {
		return businessId;
	}
	public void setBusinessId(Integer businessId) {
		this.businessId = businessId;
	}
	public Integer getDeptId() {
		return deptId;
	}
	public void setDeptId(Integer deptId) {
		this.deptId = deptId;
	}
	public Double getAcount() {
		return acount;
	}
	public void setAcount(Double acount) {
		this.acount = acount;
	}
	public String getBills() {
		return bills;
	}
	public void setBills(String bills) {
		this.bills = bills;
	}
	public Date getCreatetime() {
		return createtime;
	}
	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
	public List<User> getUsers() {
		return users;
	}
	public void setUsers(List<User> users) {
		this.users = users;
	}
	public String getCompanyname() {
		return companyname;
	}
	public void setCompanyname(String companyname) {
		this.companyname = companyname;
	}
	public String getBusinessname() {
		return businessname;
	}
	public void setBusinessname(String businessname) {
		this.businessname = businessname;
	}
	public String getDeptname() {
		return deptname;
	}
	public void setDeptname(String deptname) {
		this.deptname = deptname;
	}
	public Paybill(Integer id, String code, String name, Integer companyId, Integer businessId, Integer deptId,
			Double acount, String bills, Date createtime, List<User> users, String companyname, String businessname,
			String deptname) {
		super();
		this.id = id;
		this.code = code;
		this.name = name;
		this.companyId = companyId;
		this.businessId = businessId;
		this.deptId = deptId;
		this.acount = acount;
		this.bills = bills;
		this.createtime = createtime;
		this.users = users;
		this.companyname = companyname;
		this.businessname = businessname;
		this.deptname = deptname;
	}
	public Paybill() {
		super();
		// TODO Auto-generated constructor stub
	}
	@Override
	public String toString() {
		return "Paybill [id=" + id + ", code=" + code + ", name=" + name + ", companyId=" + companyId + ", businessId="
				+ businessId + ", deptId=" + deptId + ", acount=" + acount + ", bills=" + bills + ", createtime="
				+ createtime + ", users=" + users + ", companyname=" + companyname + ", businessname=" + businessname
				+ ", deptname=" + deptname + "]";
	}
	
}
